// 水平方向菜单，近支持一级

@include e-desktop {
    .e-header-menu-wrapper {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .e-header-menu {
        display: flex;
        align-items: stretch;
        height: 100%;
        margin: 0 0 0 e-get($e-page-padding, desktop);

        .e-menu-nav {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            align-items: stretch;

            > .e-menu-item {
                display: flex;
                align-items: center;
                padding: 0 .25rem;
                transition: all .3s ease;

                &:first-child {
                    padding-left: 0;
                }

                .e-menu-link {
                    display: flex;
                    text-decoration: none;
                    position: relative;
                    padding: 0.65rem 1.1rem;
                    font-weight: 500;
                    vertical-align: middle;
                    align-items: stretch;
                    outline: none !important;
                    cursor: pointer;
                    border-radius: $e-border-radius;
                    @include e-not-rounded {
                        border-radius: 0 !important;
                    }
                    transition: all .3s ease;

                    .e-menu-link-text {
                        display: flex;
                        align-items: center;
                        flex-grow: 1;
                        padding: 0;
                    }

                    .e-menu-link-icon {
                        width: 30px;
                        display: flex;
                        align-items: center;
                    }

                    &:hover,
                    &:active,
                    &:focus {
                        text-decoration: none;
                    }
                }

                > .e-menu-link {
                    > .e-menu-link-text {
                        width: auto;
                    }
                }

                // 更多按钮
                &.e-menu-item-more{
                    .dropdown-toggle {
                        padding-left: .5rem;
                        padding-right: .5rem;

                        .e-menu-link-icon{
                            width: auto;
                        }

                        &:after {
                            display: none;
                        }
                    }
                }
            }
        }
    }
}

// pad & 手机模式隐藏
@include e-tablet-and-mobile {
    .e-header-menu-wrapper {
        display: none;
    }
}